//
//  MyfirstTableViewCell.m
//  xiaoyiNew
//
//  Created by 讯一 on 16/12/26.
//  Copyright © 2016年 讯一. All rights reserved.
//

#import "MyfirstTableViewCell.h"

@interface MyfirstTableViewCell()

@property (nonatomic, strong)UIImageView *imageViewContent;
@property (nonatomic,strong)UILabel *nameLable;
@property (nonatomic,strong)UIImageView *stateicon1;
@property (nonatomic,strong)UIImageView *stateicon2;


@end
@implementation MyfirstTableViewCell
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.backgroundColor = [UIColor whiteColor];
        CGFloat sumWidth = CGRectGetWidth(self.frame);
        CGFloat sumHeight = CGRectGetHeight(self.frame);
        
        _imageViewContent = [[UIImageView alloc] initWithFrame:CGRectMake(10.0f, 10.0f, sumHeight-10, sumHeight-20)];
        _imageViewContent.contentMode = UIViewContentModeScaleAspectFill;
        _imageViewContent.image = [UIImage imageNamed:@"mypic1"];
        [self.contentView addSubview:self.imageViewContent];
        _nameLable = [[UILabel alloc]initWithFrame:CGRectMake(sumHeight, sumHeight/2.0-5, 200, 20)];
        _nameLable.text = @"小珊子";
        _nameLable.backgroundColor = [UIColor redColor];
        [self.contentView addSubview:self.nameLable];
//        [self.contentView addSubview:_imageViewContent];
//        _stateicon1 = [UIImageView alloc]initWithFrame:CGRectMake( sumHeight,  sumHeight/2,0, <#CGFloat width#>, <#CGFloat height#>)
        
    }
    return self;
}
- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
